<!DOCTYPE>
<html>
<head>
<meta charset="utf-8">
<title>Demo Project Main Page</title>
<link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
<link href="../assets/css/bootstrap-responsive.css" rel="stylesheet">
<link href="../assets/css/docs.css" rel="stylesheet">
<link href="../assets/css/prettify.css" rel="stylesheet">
<script src="../assets/js/prettify.js" type="text/javascript"></script>
</head>


<body>

	<!-- Navbar
    ================================================== -->
    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="brand" href="./index.html" style="color:#FFF">Sproject</a>
          <div class="nav-collapse collapse">
            <ul class="nav">
              <li class="">
                <a href="../index.html">首页</a>
              </li>
              <li class="active">
                <a href="./start.html">开发环境搭建</a>
              </li>
              <li class="">
                <a href="./project.html">工程框架分析</a>
              </li>
              <li class="">
                <a href="./dao.html">DAO代码示例</a>
              </li>
              <li class="">
                <a href="./service.html">Service代码示例</a>
              </li>
              <li class="">
                <a href="./controller.html">Controller代码示例</a>
              </li>
              <li class="">
                <a href="./web.html">前端代码示例</a>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
    
     <!-- Main
    ================================================== -->
	<div class="container" style="min-height:500px;">
		<div class="row-fluid">
			
	<!-- Sider
    ================================================== -->
			<div class="span3">
				<ul class="nav nav-list bs-docs-sidenav affix">
					<li><a href="#jdk"><i class="icon-chevron-right"></i> Step1. JDK</a></li>
					<li><a href="#ide"><i class="icon-chevron-right"></i> Step2. IDE</a></li>
					<li><a href="#database"><i class="icon-chevron-right"></i> Step3. Database</a></li>
					<li><a href="#maven"><i class="icon-chevron-right"></i> Step4. Maven</a></li>
					<li><a href="#git"><i class="icon-chevron-right"></i> Step5. Git</a></li>
					<li><a href="#"><i class="icon-chevron-right"></i> 缺陷管理(略)</a></li>
				</ul>
			</div>
			
	<!-- Content
    ================================================== -->
			<div class="span9">
			
				<!--jdk  -->
				<section id="jdk">
					<div class="page-header">
						<h2>Step1. JDK1.6安装配置</h2>
					</div>

					<h4>Windows安装</h4>
					<p>1.下载安装包, <a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">下载</a>, 选择“Previous Releases”</p>
					<p>2.配置系统环境变量, &lt;path&gt;表示安装目录</p>
					<div class="bs-docs-example">
					<p>打开系统环境变量窗口，新增环境变量JAVA_HOME</p>
<pre class="prettyprint linenums">
JAVA_HOME=/&lt;path&gt;
</pre>
					<p>在Path最后追加，注意 ; 分隔</p>
<pre class="prettyprint linenums">
/&lt;path&gt;/bin
</pre>
					</div>
					
					<h4>Linux安装</h4>
					<p>1.下载bin格式安装包, 提示文件权限, &lt;path&gt;表示安装目录</p>
					<div class="bs-docs-example">
<pre class="prettyprint linenums">
[root@test-pc ~]# cd /usr/local
[root@test-pc local]# wget http://&lt;jdk_url&gt;/jdk1.6.0_34.bin
[root@test-pc local]# chmod +x jdk1.6.0_34.bin
[root@test-pc local]# ./jdk1.6.0_34.bin
</pre>
					</div>
					<p>3.配置环境变量</p>
					<div class="bs-docs-example">
					<p>打开profile</p>
<pre class="prettyprint linenums">
[root@test-pc local]# vim /etc/profile
</pre>
					<p>在文件最后加上</p>
<pre class="prettyprint linenums">
export JAVA_HOME=/usr/local/jdk1.6.0_34
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
</pre>
					<p>测试是否成功</p>
<pre class="prettyprint linenums">
[root@test-pc local]# java -version
</pre>
					</div>
					
					<h4>MAC安装jdk1.6</h4>
					<p>1.下载bin格式安装包, 提示文件权限, &lt;path&gt;表示安装目录</p>
					<div class="bs-docs-example">
<pre class="prettyprint linenums">
Sign in and click the java section on the right.
The jdk is installed into a different location then previous. This will result in IDEs (such as Eclipse) being unable to locate source code and javadocs.
At the time of writing the JDK ended up here:
/Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home
Open up eclipse preferences and go to Java --> Installed JREs page
Rather than use the "JVM Contents (MacOS X Default) we will need to use the JDK location
At the time of writing Search is not aware of the new JDK location; we we will need to click on the Add button
From the Add JRE wizard choose "MacOS X VM" for the JRE Type
For the JRE Definition Page we need to fill in the following:
JRE Home: /Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home
The other fields will now auto fill, with the default JRE name being "Home". You can quickly correct this to something more meaningful:
JRE name: System JDK
Finish the wizard and return to the Installed JREs page
Choose "System JDK" from the list
You can now develop normally with:
</pre>
					</div>
					
				</section>
				
				<!-- IDE  -->
				<section id="ide">
					<div class="page-header">
						<h1>IDE</h1>
					</div>

					<h2>Example</h2>
					<p>
						Toggleable, contextual menu for displaying lists of links. Made
						interactive with the <a href="./javascript.html#dropdowns">dropdown
							JavaScript plugin</a>.
					</p>
					<div class="bs-docs-example">
						
					</div>
					
				</section>
				
				<!-- DATABASE  -->
				<section id="database">
					<div class="page-header">
						<h1>Database</h1>
					</div>

					<h2>Example</h2>
					<p>
						Toggleable, contextual menu for displaying lists of links. Made
						interactive with the <a href="./javascript.html#dropdowns">dropdown
							JavaScript plugin</a>.
					</p>
					<div class="bs-docs-example">
						
					</div>
					
				</section>
				
				<!-- MAVEN  -->
				<section id="maven">
					<div class="page-header">
						<h1>Maven</h1>
					</div>

					<h2>Example</h2>
					<p>
						Toggleable, contextual menu for displaying lists of links. Made
						interactive with the <a href="./javascript.html#dropdowns">dropdown
							JavaScript plugin</a>.
					</p>
					<div class="bs-docs-example">
						
					</div>
					
				</section>
				
				<!-- GIT  -->
				<section id="git">
					<div class="page-header">
						<h1>Git</h1>
					</div>

					<h2>Example</h2>
					<p>
						Toggleable, contextual menu for displaying lists of links. Made
						interactive with the <a href="./javascript.html#dropdowns">dropdown
							JavaScript plugin</a>.
					</p>
					<div class="bs-docs-example">
						
					</div>
					
				</section>

			</div>
		</div>
	</div>
	
	 <!-- Footer
    ================================================== -->
    <footer class="footer">
      <div class="container">
        <p>A Simple Spring Project For Study.</p>
        <p>Powered by <a href="">thon.ju#gmail.com</a></p>
      </div>
    </footer>

	<script type="text/javascript">
		// make code pretty
	    window.prettyPrint && prettyPrint()
	    
	    // side bar
	    setTimeout(function () {
	      $('.bs-docs-sidenav').affix({
	        offset: {
	          top: function () { return $window.width() <= 980 ? 290 : 210 }
	        , bottom: 270
	        }
	      })
	    }, 100)
	</script>
</body>
</html>
